package com.hdoit.kylin.logical.baseInfo.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.hdoit.kylin.logical.baseInfo.dao.IMoneyTypeDao;
import com.hdoit.kylin.logical.baseInfo.model.MoneyType;
import com.hdoit.kylin.logical.baseInfo.service.IMoneyTypeService;
import com.hdoit.kylin.logical.viewmodel.baseInfo.MoneyTypeSearch;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;

@Component
public class MoneyTypeServiceImpl extends SuperService<MoneyType> implements IMoneyTypeService {
	
	private IMoneyTypeDao moneyTypeDao;
	
	public IMoneyTypeDao getMoneyTypeDao() {
		return moneyTypeDao;
	}

	@Resource
	public void setMoneyTypeDao(IMoneyTypeDao moneyTypeDao) {
		this.moneyTypeDao = moneyTypeDao;
	}

	@Override
	public List<MoneyType> queryListByOwn(String groupId) {
		return moneyTypeDao.queryList(groupId);
	}

	@Override
	public List<MoneyType> queryList(MoneyTypeSearch search, PagerModel pagerModel) {
			return moneyTypeDao.queryList(search,pagerModel);
	}
}
